package com.main.antenne;

import android.content.Context;
import android.util.AttributeSet;
import android.view.Gravity;
import android.widget.TextView;

public class TableTextView extends TextView {

	public TableTextView(Context context,String text, boolean isTitle, int width) {
		super(context);
		this.setText(text);
		if(isTitle) {
			this.setTextAppearance(context, R.style.Rote_Schrift_Fett);
			this.setMinimumHeight(75);
		}
		else {
			this.setTextAppearance(context, R.style.Schwarze_Schrift);
			this.setMinimumHeight(65);
		}
		this.setWidth(width);
		this.setGravity(Gravity.CENTER);
	}

	public TableTextView(Context context, AttributeSet attrs, int defStyle) {
		super(context, attrs, defStyle);
		// TODO Auto-generated constructor stub
	}

	public TableTextView(Context context, AttributeSet attrs) {
		super(context, attrs);
		// TODO Auto-generated constructor stub
	}

	public TableTextView(Context context) {
		super(context);
		// TODO Auto-generated constructor stub
	}

	

}
